var entity = require('../entity');
var Suggest = entity.Suggest;

exports.newAndSave = function(user, content, callback){
    var suggest = new Suggest();
    suggest.from = user.openid +'['+user.name+']';
    suggest.content = content;
    suggest.time = new Date();
    suggest.save(function(err, data){
        callback(err, data);
    });
}